/* 登录与注册页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f9fafb; /* 浅灰底色，类似于主页的背景 */
    font-family: 'Noto Sans SC', sans-serif;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background-color: white; /* 白色卡片底色 */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2.5rem;
}

.login-form {
    width: 100%;
}

.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color, #4361ee);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--gray-500, #6b7280);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #fef2f2; /* 浅红色错误背景 */
    color: #b91c1c;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.error-message.hidden {
    display: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color, #4361ee);
    cursor: pointer;
}

.login-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color, #4361ee);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.login-button:hover {
    background-color: var(--primary-dark, #2b4acb);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600, #4b5563);
}

.register-link {
    color: var(--primary-color, #4361ee);
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.25rem;
}

.hidden {
    display: none;
}